//请求后台的方法
import request from '@/request'

//分页查询需求信息列表
export function getRequirementInfoListByPage(data){
  return request({
    url:'/requirementInfo/getRequirementInfoListByPage',
    method: 'post',
	data
  })
}


//根据需求编号或需求名称查询需求列表
export function getRequirementInfoList(params){
  return request({
    url:'/requirementInfo/getRequirementInfoList',
    method: 'post',
	params:params
  })
}

//查询需求信息
export function getRequirementInfo(params){
  return request({
    url:'/requirementInfo/getRequirementInfo',
    method: 'post',
	params:params
  })
}


//查询需求信息
export function saveRequirementInfo(data){
  return request({
    url:'/requirementInfo/saveRequirementInfo',
    method: 'post',
	data
  })
}


//根绝需求号分页查询对应工单信息
export function getWorkOrderInfoByQmsNo(data){
  return request({
    url:'/requirementInfo/getWorkOrderInfoByQmsNo',
    method: 'post',
	data
  })
}


export function exportRequirement(data){
  return request({
    url:'/requirementBatch/exportRequirement',
    method: 'post',
	responseType:'blob',
	data
  })
}

export function exportAllRequirement(data){
  return request({
    url:'/requirementBatch/exportAllRequirement',
    method: 'post',
	responseType:'blob',
	data
  })
}
